package com.sumover.DAO;

import com.sumover.POJO.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(User record);

    User selectByPrimaryKey(Integer uid);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    User queryUser(@Param("username") String username, @Param("password") String password);

    void addNewUser(@Param("username") String username, @Param("password") String password);

    List<User> selectByUsername(@Param("username") String updateName);

}